package com.tongtong.stsuserapi.pojo.search;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("商品搜索")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ItemSearch implements Serializable {
	private static final long serialVersionUID = -233L;

	@ApiModelProperty("商品名")
	private String itemName;
	@ApiModelProperty("商品单价")
	private Double price;
	@ApiModelProperty("商品状态 (1为发布 2为订满 3为售罄)")
	private Integer itemState;
	@ApiModelProperty("商品描述")
	private String description;
	@ApiModelProperty("商品库存")
	private Integer quantity;
	@ApiModelProperty("商品已预定数")
	private Integer orderedQuantity;

	@ApiModelProperty("发布时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date releaseTime;
	@ApiModelProperty("修改时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date updateTime;

	@ApiModelProperty("分类id")
	private Long classificationId;
	@ApiModelProperty("卖家id")
	private Long ownerId;

	@ApiModelProperty("最高价格")
	private Double maxPrice;
	@ApiModelProperty("最低价格")
	private Double minPrice;

	@ApiModelProperty("卖家地址")
	private String address;

}